using System.ComponentModel.DataAnnotations;

namespace Yuekao.Domain.Entitys
{
    /// <summary>
    /// 科室表
    /// </summary>
    public class Office
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        [Key]
        public int OfficeId { get; set; }

        /// <summary>
        /// 科室名称
        /// </summary>
        [StringLength(30)]
        public string OfficeName { get; set; } = string.Empty;

        /// <summary>
        /// 所属院区
        /// </summary>
        public int HospitalId { get; set; }

        /// <summary>
        /// 删除键
        /// </summary>
        public bool IsDel { get; set; } = false;

        /// <summary>
        /// 导航属性 - 院区
        /// </summary>
        public virtual Hospital Hospital { get; set; } = null!;
    }
} 